.coupon-index {
  background-color: #f5f5f5;
  overflow: hidden;
  height: 100vh;
  padding-top: 24px;
}

.coupon-code {
  position: relative;
  width: 100%;
  overflow: hidden;
  .coupon-history {
    position: absolute;
    top: 22px;
    right: 27px;
    z-index: 2;
  }
  .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 224px;
  }
  .coupon-code-wrap {
    position: relative;
    z-index: 2;
    width: 702px;
    height: 112px;
    background: rgba(255, 255, 255, 1);
    border-radius: 12px;
    margin: 168px auto 0;
    display: flex;
    padding: 24px;
    box-sizing: border-box;
    .code {
      display: block;
      border-bottom: 2px solid #e5e5e5;
      height: 100%;
      font-size: 28px;
      flex: 1;
      &::placeholder {
        color: #999999;
        font-size: 28px;
      }
    }
    .confirm-btn {
      margin-left: 24px;
      flex-shrink: 0;
      width: 200px;
      height: 100%;
      background: rgba(18, 179, 255, 1);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      color: #fff;
    }
  }
}

.tab-item {
  height: 88px;
  background-color: #fff;
  display: flex;
  .tab-li {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    &.act {
      .tab-li-text {
        color: #12b3ff;
        &::after {
          display: block;
        }
      }
    }
    .tab-li-text {
      position: relative;
      font-size: 28px;
      font-weight: 500;
      color: rgba(153, 153, 153, 1);
      &::after {
        position: absolute;
        left: 0;
        bottom: -8px;
        content: "";
        width: 100%;
        height: 4px;
        background: rgba(18, 179, 255, 1);
        border-radius: 2px;
        display: none;
      }
    }
  }
}
.coupon-bd {
  // margin-top: 20px;
  padding-top: 382px;
  position: relative;
  padding-bottom: 22px;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.tab-cont {
  // background: #fff;
  height: 100%;
  .tab-storetext {
    font-size: 24px;
    color: #12b3ff;
  }
  // overflow-y: scroll;
  .tab-cont-item {
    // padding-left: 24px;
    padding: 0 24px;
  }
  .scroll-bt-tips {
    font-size: 24px;
    font-weight: 500;
    color: #999999;
    padding: 40px 0 20px;
    text-align: center;
    text-indent: -24px;
  }
  .hstab-cont-item-li {
    position: relative;
    padding: 24px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    &.grayscale {
      -webkit-filter: grayscale(100%);
      filter: grayscale(100%);
    }
    .tab-cont-bd {
      display: flex;
      .coupon-tips-block {
        position: absolute;
        top: 42px;
        left: 0;
        width: 120px;
        height: 45px;
        background-color: #ff3b30;
        font-size: 20px;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: rotate(-45deg);
        transform-origin: left bottom;
        &.sty2 {
          color: #bbbbbb;
        }
      }
      .price {
        .strong {
          font-size: 88px;
          font-weight: bold;
          color: #12b3ff;
          height: 108px;
          &.name {
            padding-top: 30px;
            font-size: 60px;
            &::first-letter {
              font-size: 60px;
            }
          }
          &::first-letter {
            font-size: 24px;
          }
        }
        .sub-tips {
          color: #999999;
          font-size: 20px;
          text-align: center;
          padding-top: 10px;
        }
      }
      .context {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        .coupon-name {
          position: relative;
          margin-bottom: 6px;
          .strong {
            position: relative;
            font-size: 28px;
            color: #333;
            font-weight: 500;
            max-width: 288px;
            text-overflow: ellipsis;
            // white-space: nowrap;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
          }
          .coupon-type {
            position: absolute;
            left: -10px;
            top: 5px;
            font-size: 20px;
            color: #12b3ff;
            transform: translate3d(-100%, 0, 0);
            white-space: nowrap;
            &.hezuo {
              color: #ff7026;
            }
          }
        }
      }
      .msgtext {
        font-size: 20px;
        font-weight: 500;
        color: #999999;
      }
    }
    .tab-cont-bt {
      margin-top: 12px;
      .gotext {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        text-align: right;
        font-size: 20px;
        color: #12b3ff;
        .arw {
          margin-left: 8px;
          display: flex;
          align-items: center;
          // justify-content: center;
          width: 28px;
          height: 28px;
          background-color: #12b3ff;
          border-radius: 50%;
          &::after {
            margin-left: 4px;
            width: 12px;
            height: 12px;
            border: 2px solid #fff;
            transform: rotate(45deg);
            content: "";
            border-color: #fff #fff transparent transparent;
            box-sizing: border-box;
          }
        }
      }
    }
    .tips {
      position: absolute;
      right: 24px;
      top: 24px;
      width: 146px;
      height: 40px;
      background: rgba(245, 39, 8, 0.1);
      border-radius: 6px;
      font-size: 20px;
      color: rgba(255, 59, 48, 1);
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}

.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}
